package bean;

import java.time.LocalDate;

public class RecordBean {
    /**交易记录id*/
    private int id;
    /**用户账号*/
    private UserBean user;
    /**日期*/
    private LocalDate date = LocalDate.now();
    /**描述*/
    private String description;
    /**金额*/
    private double balance;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "RecordBean{" +
                "id=" + id +
                ", user=" + user +
                ", date=" + date +
                ", description='" + description + '\'' +
                ", balance=" + balance +
                '}';
    }
}
